#pragma once

#include <Windows.h>

#include <QtWidgets/QWidget>
#include "ui_QtWidgetsApplication.h"
#include <qlabel.h>
#include <qpushbutton.h>
#include <qimage.h>
#include <qpixmap.h>
#include <opencv2/opencv.hpp>
#include <string>

using namespace cv;
using namespace std;

void putInfo(Mat frame,QString image_name);
void playsound(QString sound_file);

class QtWidgetsApplication : public QWidget
{
    Q_OBJECT

public:
    QtWidgetsApplication(QWidget *parent = Q_NULLPTR);

private:
    Ui::QtWidgetsApplicationClass ui;
    CascadeClassifier faceDetector;
    CascadeClassifier faceDetectorMouth;
    CascadeClassifier faceDetectorEye;
    std::vector<Rect> faces;  //检测到的人脸
    std::vector<Rect> facesEye;  //检测的眼
    std::vector<Rect> facesMouth;  //检测的嘴
    int mask_count=0;
    int no_mask_count=0;
    int mask_sucess=0;


private slots:
};
